<div class="blogs form">
			   <?php  if(empty($this->request->params['admin'])) {?>
<div class="l-curve-top">
		<div class="r-curve-top">
			<div class="top-bg"></div>
			
							</div>
						</div>
						
						<div class="shad-bg-lft clearfix">
							
							<div class="shad-bg-rgt">
								<div class="shad-bg">
								<?php }?>
   <h2 class="project-title">Edit Update</h2> 
   <div class="main-section js-corner round-5">
	
<div class="clearfix user-profile-block user-profile-block1">
<div class="profile-image">
    	<?php echo $this->Html->link($this->Html->showImage('Project', $project['Attachment'], array('dimension' => 'big_thumb', 'alt' => sprintf(__l('[Image: %s]'), $this->Html->cText($project['Project']['name'], false)), 'title' => $this->Html->cText($project['Project']['name'], false)),array('aspect_ratio'=>1)), array('controller' => 'projects', 'action' => 'view',  $project['Project']['slug'], 'admin' => false), array('escape' => false)); ?>
	    <h3><?php echo $this->Html->link($this->Html->cText($project['Project']['name'],false),array('controller' => 'projects', 'action' => 'view',  $project['Project']['slug'], 'admin' => false), array('escape' => false));?></h3>
</div>
</div>

        <div class="fields-block js-corner round-5">
                <?php echo $this->Form->create('Blog', array('class' => 'normal'));?>
                <fieldset>
                <?php
                		echo $this->Form->input('id');
						if ($this->Auth->user('user_type_id') == ConstUserTypes::Admin) :
							echo $this->Form->input('project_id', array('label' => __l('Project')));
						else :
							echo $this->Form->input('project_id', array('type' => 'hidden'));
						endif;
                		echo $this->Form->input('title', array('label' => __l('Title')));
                		echo $this->Form->input('content', array('class' => 'js-editor', 'label' => __l('Description')));
                		echo $this->Form->input('tag', array('type' => 'text', 'info' => __l('Separate tags with commas')));
                	?>
                </fieldset>
                <div class="submit-block clearfix"><?php
                echo $this->Form->submit(__l('Publish'), array('name' => 'data[Blog][publish]')); ?>
                </div>
                <?php echo $this->Form->end();
                ?>
        </div>
    </div>
    			   <?php  if(empty($this->request->params['admin'])) {?>
		</div>
							</div>
						</div>
						<div class="l-curve-bot">
							<div class="r-curve-bot">
									<div class="bot-bg"></div>
							</div>
						</div>
						<?php }?>
</div>